<?php
/**
 * Created on 19 mars 08 by Eric Jeker <eric.jeker@gmail.com>
 * Created on Eclipse 3.2 with PHPEclipse 1.1.8
 * (c) 2007 - 2008 Copyright Eric Jeker <eric.jeker@gmail.com>
**/
?>

<div class="pagination">
<?php if ($pager->haveToPaginate()): ?>
  <?php echo link_to('&laquo;', "$module/$action?page=".$pager->getFirstPage()) ?>
  <?php echo link_to('&lt;', "$module/$action?page=".$pager->getPreviousPage()) ?>
  <?php $links = $pager->getLinks(); foreach ($links as $page): ?>
    <?php echo ($page == $pager->getPage()) ? $page : link_to($page, "$module/$action?page=".$page) ?>
    <?php if ($page != $pager->getCurrentMaxLink()): ?> - <?php endif; ?>
  <?php endforeach; ?>
  <?php echo link_to('&gt;', "$module/$action?page=".$pager->getNextPage()) ?>
  <?php echo link_to('&raquo;', "$module/$action?page=".$pager->getLastPage()) ?>
<?php endif; ?>
</div>